package Database;

import java.util.Scanner;

/**
 * @Author mao
 * @Date 2025/11/25
 * @Description 网站信息实体类
 */
public class Website {
    private int id;
    private String name;
    private String url;
    private String country;

    public Website() {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入网站名称：");
        name = sc.next();
        System.out.println("请输入网站网址：");
        url = sc.next();
        System.out.println("请输入网站国家：");
        country = sc.next();
    }

    public Website(int id, String name, String url, String country) {
        this.id = id;
        this.name = name;
        this.url = url;
        this.country = country;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getCountry() {
        return country;
    }

    public void setCountry(String country) {
        this.country = country;
    }
}
